package com.data.documents;
/**
 * The document class. It is the superclass of
 * all the documents of the Doctors Office.
 * 
 * @author Elizabeth
 * @version 3.14
 *
 */
public class UniversalDocument{
	
	/**
	 * document id
	 */
	private String docId;
	
	private Object[] data;
	
	/**
	 * Creates a new Document
	 * @param docId
	 */
	public UniversalDocument(String docId){
		this.docId = docId;
	}
	
	/**
	 * gets the Documents's id
	 * @return document's id
	 */
	public String getDocId() {
		return docId;
	}
	
	/**
	 * sets the document's id
	 * @param docId
	 */
	public void setDocId(String docId){
		this.docId = docId;
	}
	
	public Object[] getData(){
		return data;
	}
	
	public void setData(Object[] data){
		this.data = data;
	}
	
	public void setDataField(Object o, int index){
		data[index] = o;
	}
}